# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=yavta
pkgver=0_git20220328
_commit="c7b5b7570476d8207a364e4d3625537078d3ba1f"
pkgrel=0
pkgdesc="Yet Another V4L2 Test Application"
url="https://git.ideasonboard.org/yavta.git/"
arch="all"
license="GPL-2.0-or-later"
depends="linux-headers"
makedepends="meson"
# TODO: https://git.ideasonboard.org/yavta.git doesn't provide archives
source="https://github.com/jailuthra/yavta/archive/$_commit/yavta-$_commit.tar.gz"
builddir="$srcdir/yavta-$_commit"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
bafe52465bb5a0dc9d0370946aa273f8f6c49d82255add0510f9d698875abb21f24b80e068f486c1cc7809580c41bb803e94eed3c03eca016502ac11752a31e9  yavta-c7b5b7570476d8207a364e4d3625537078d3ba1f.tar.gz
"
